home *** CD-ROM | disk | FTP | other *** search
/ Die Ultimative Software-P…i Collection 1996 & 1997 / Die Ultimative Software-Pakete CD-ROM fur Atari Collection 1996 & 1997.iso / g / gnu_c / gempp19.zoo / gem++19 / src / gemd.cc < prev    next >
Encoding:
C/C++ Source or Header  |  1993-11-01  |  964 b   |  40 lines

  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. //  This file is Copyright 1992,1993 by Warwick W. Allison.
  4. //  This file is part of the gem++ library.
  5. //  You are free to copy and modify these sources, provided you acknowledge
  6. //  the origin by retaining this notice, and adhere to the conditions
  7. //  described in the file COPYING.LIB.
  8. //
  9. /////////////////////////////////////////////////////////////////////////////
  10.  
  11. #include <aesbind.h>
  12. #include "gemo.h"
  13. #include "gema.h"
  14. #include "gemd.h"
  15.  
  16. GEMdesktop::GEMdesktop(GEMactivity& in, const GEMrsc& rsc, int RSCindex) :
  17.     GEMformwindow(in,rsc,RSCindex,-1)
  18. {
  19.     int x,y,w,h;
  20.  
  21.     wind_get(0,WF_WORKXYWH,&x,&y,&w,&h);
  22.  
  23.     Object(0).MoveTo(x,y);
  24.     Object(0).Resize(w,h);
  25.  
  26.     form_dial(FMD_START,0,0,0,0,x,y,w,h);
  27.     wind_set(0,WF_NEWDESK,Obj,0);
  28.     form_dial(FMD_FINISH,0,0,0,0,x,y,w,h);
  29. }
  30.  
  31. GEMdesktop::~GEMdesktop()
  32. {
  33.     wind_set(0,WF_NEWDESK,0);
  34. }
  35.  
  36. bool GEMdesktop::IsOpen() const
  37. {
  38.     return TRUE;
  39. }
  40.